package juc.thread;

import java.util.concurrent.FutureTask;
public class TestThread {
    public static void main(String[] args) {
        FutureTask<Integer>task=new FutureTask<>(() -> {
            System.out.println("task...");
            Thread.sleep(10000);
            return 100;
        });
        new Thread(task,"t1").start();
        System.out.println("main...");
    }
}
